import request from '@/utils/request'

// 获取充值列表
export function list(data) {
  return request({
    url: '/adminapi/finance/recharge/list',
    method: 'post',
    data
  })
}
// 充值审核
export function audit(data) {
  return request({
    url: '/adminapi/finance/recharge/audit',
    method: 'post',
    data
  })
}
// 获取会员卡列表
export function getClubCardList(data) {
  return request({
    url: '/adminapi/user/card/getClubCardList',
    method: 'post',
    data
  })
}
// 添加或者修改会员卡
export function SaveClubCard(data) {
  return request({
    url: '/adminapi/user/card/SaveClubCard',
    method: 'post',
    data
  })
}
// 获取会员卡详情
export function getClubCardInfo(data) {
  return request({
    url: '/adminapi/user/card/getClubCardInfo',
    method: 'post',
    data
  })
}
// 更新会员卡状态
export function SaveClubCardStatus(data) {
  return request({
    url: '/adminapi/user/card/SaveClubCardStatus',
    method: 'post',
    data
  })
}
// 删除会员卡
export function delClubCardStatus(data) {
  return request({
    url: '/adminapi/user/card/delClubCardStatus',
    method: 'post',
    data
  })
}

// 获取提现配置信息
export function WithdrawConfiginfo(data) {
  return request({
    url: '/adminapi/merchant/WithdrawConfig/info',
    method: 'post',
    data
  })
}
// 更新商户提现配置信息
export function saveWithdrawConfig(data) {
  return request({
    url: '/adminapi/merchant/WithdrawConfig/save',
    method: 'post',
    data
  })
}

// 商户提现列表
export function getWithdrawList(data) {
  return request({
    url: '/adminapi/merchant/withdraw/list',
    method: 'post',
    data
  })
}
// 商户提现审核
export function audits(data) {
  return request({
    url: '/adminapi/merchant/withdraw/reviewed',
    method: 'post',
    data
  })
}